package cn.mulanbay.job.web.bean.request.log;

import cn.mulanbay.common.aop.FullEndDateTime;
import cn.mulanbay.common.bean.PageSearch;
import cn.mulanbay.persistent.query.Operator;
import cn.mulanbay.persistent.query.Query;
import cn.mulanbay.schedule.enums.JobExecuteResult;

import java.util.Date;

public class TaskLogCostTimeStatSearch extends PageSearch implements FullEndDateTime {

    @Query(column = "task_trigger_id", op = Operator.EQ)
    private Long taskTriggerId;

    @Query(column = "start_time", op = Operator.GE)
    private Date startDate;

    @Query(column = "start_time", op = Operator.LE)
    private Date endDate;

    @Query(column = "execute_result", op = Operator.EQ)
    private JobExecuteResult executeResult;

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    @Override
    public Date getEndDate() {
        return endDate;
    }

    @Override
    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public Long getTaskTriggerId() {
        return taskTriggerId;
    }

    public void setTaskTriggerId(Long taskTriggerId) {
        this.taskTriggerId = taskTriggerId;
    }

    public JobExecuteResult getExecuteResult() {
        return executeResult;
    }

    public void setExecuteResult(JobExecuteResult executeResult) {
        this.executeResult = executeResult;
    }
}
